import request from '@/utils/request'

// 查询灯光设备列表
export function getLightingDeviceList(query) {
  return request({
    url: '/lighting/device/manage',
    method: 'get',
    params: query
  })
}

// 控制灯光设备
export function controlLightingDevice(data) {
  return request({
    url: '/lighting/device/control',
    method: 'post',
    data: data
  })
}

// 查询灯光设备运行日志列表
export function getLightingDeviceLogs(query) {
  return request({
    url: '/lighting/device/logs',
    method: 'get',
    params: query
  })
}

// 清空灯光设备运行日志
export function clearLightingDeviceLogs() {
  return request({
    url: '/lighting/device/logs/clear',
    method: 'delete'
  })
}

// 获取灯光设备参数设置
export function getLightingParameters() {
  return request({
    url: '/lighting/device/parameters',
    method: 'get'
  })
}

// 保存灯光设备参数设置
export function saveLightingParameters(data) {
  return request({
    url: '/lighting/device/parameters',
    method: 'post',
    data: data
  })
}